<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><title>axb小号配置系统</title><style>* {
            box-sizing: border-box;
        }

        body {
            margin: 0;
            padding: 0;
            height: 100vh;
            overflow: hidden;
        }

        #login {
            width: 100%;
            height: 100%;
            text-align: center;

        }

        ::-webkit-input-placeholder {
            /* WebKit browsers */
            color: #999;
            font-size: 16px;
        }

        ::-moz-placeholder {
            /* Mozilla Firefox 19+ */
            color: #999;
            font-size: 16px;
        }

        :-ms-input-placeholder {
            /* Internet Explorer 10+ */
            color: #999;
            font-size: 16px;
        }

        #login .login {
            position: relative;
            margin: 0 auto;
            height: 100%;
            padding-top: 18.1vh;
            background: #606266;
            /* background: #8cc5ff; */
        }

        .login .logo-title {
            font-size: 24px;
            letter-spacing: 7px;
            padding-bottom: 50px;
            color: #fff;
        }

        .login .el-form {
            width: 350px;
            margin: 0 auto;
            padding: 20px;
            background: #dcdfe6;
            /* background: #409eff; */
            -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.5);
            box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.5);
        }

        .login .el-form .el-form-item {
            margin-bottom: 22px;
        }

        .login .el-form .el-form-item .el-form-item__content {
            line-height: 40px;
            position: relative;
            font-size: 14px;
        }

        .login .login-form .el-input {
            width: 100% !important;
        }

        .el-input {
            position: relative;
            font-size: 14px;
            display: inline-block;
        }

        .login .login-form .el-input input {
            text-align: center;
            border: 0px;
            border-radius: 0px;
            background-color: #fff;
            color: #999;
        }

        .login .login-form input:-webkit-autofill,
        .login .login-form textarea:-webkit-autofill,
        .login .login-form select:-webkit-autofill {
            -webkit-box-shadow: 0 0 0px 1000px #fff inset;
            border: 0px;
            -webkit-text-fill-color: #999 !important;
        }

        .el-input__inner {
            -webkit-appearance: none;
            background-color: #fff;
            background-image: none;
            border-radius: 4px;
            border: 1px solid #DCDFE6;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            color: #606266;
            display: inline-block;
            font-size: inherit;
            height: 40px;
            line-height: 40px;
            outline: none;
            padding: 0 15px;
            -webkit-transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
            transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
            width: 100%;
        }

        /* button */
        .el-button {
            display: inline-block;
            line-height: 1;
            white-space: nowrap;
            cursor: pointer;
            background: #fff;
            border: 1px solid #DCDFE6;
            border-color: #DCDFE6;
            color: #606266;
            -webkit-appearance: none;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            outline: none;
            margin: 0;
            -webkit-transition: .1s;
            transition: .1s;
            font-weight: 500;
            -moz-user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            padding: 12px 20px;
            font-size: 14px;
            border-radius: 4px;
        }

        .el-button--medium {
            padding: 10px 20px;
            font-size: 14px;
            border-radius: 4px;
        }

        .el-button--success {
            color: #fff;
            background-color: #999;
            border-color: #999;
        }</style><link href=/css/chunk-vendors.01f2f093.css rel=preload as=style><link href=/js/chunk-vendors.0593471c.js rel=preload as=script><link href=/js/login.d7ae96a5.js rel=preload as=script></head><body><noscript><strong>doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=login><div class=login><div class=logo-title><span>axb小号配置系统</span></div><form class="el-form login-form" id=loginform onkeypress=submitByEnter()><div class="el-form-item is-success is-required"><div class=el-form-item__content><div class=el-input><input type=text id=username name=username autocomplete=off placeholder=用户名 class=el-input__inner></div></div></div><div class="el-form-item is-success is-required"><div class=el-form-item__content><div class=el-input style="text-align: center;"><input type=password id=password name=password autocomplete=off placeholder=密码 class=el-input__inner></div></div></div><div class=el-form-item style="margin-bottom: 0px;"><div class=el-form-item__content><button type=button onclick=submit2() class="el-button el-button--success el-button--medium" style="height: 33px; line-height: 11px;"><span>登录</span></button></div></div></form></div></div><script src=/static/config.js></script><script>var usernameEle = document.getElementsByName('username')[0];
        var pwdEle = document.getElementsByName('password')[0];
        function submit2() {
            login();
        }
        function submitByEnter() {
            if (event.keyCode == 13) {
                if (event.target.id == "password") {
                    login();
                } else {
                    return false;
                }
            }
        }
        function login() {
            try {
                if (!usernameEle.value && !pwdEle.value) {
                    alert('账号密码不能为空!')
                    return;
                }
                var xhr = new XMLHttpRequest();
                xhr.open('POST', window.$CONFIG.baseUrl + '/login');
                xhr.onload = function (e) {
                    try {
                        var res = JSON.parse(this.response);
                        if (res.state == 'ok') {
                            setCookie('islogin', 'true', 6 * 60);
                            window.location.href = '/';
                        } else {
                            alert(res.code + res.msg);
                        }
                    } catch (error) {
                        alert(this.status + this.statusText);
                    }
                };
                xhr.onerror = function (e) {
                    alert('网络出错了!')
                };
                var param = { username: usernameEle.value, password: pwdEle.value };
                xhr.setRequestHeader('content-type', 'application/json');
                xhr.send(JSON.stringify(param))
            } catch (error) {
                console.log('login error');
                console.log(error);
            }
        }
        function setCookie(name, value, mintime) {
            var exprires = undefined;
            if (!!mintime) {
                var exp = new Date();
                exp.setTime(exp.getTime() + mintime * 60 * 1000);
                exprires = exp.toUTCString();
            }
            document.cookie = name + '=' + escape(value) + ';path=/;expires=' + exprires;
        }</script><script src=/js/login.d7ae96a5.js></script></body></html>